package com.mask.mk.pojo;

import com.baomidou.mybatisplus.annotation.IdType;

import java.time.LocalDateTime;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 商品信息
 * </p>
 *
 * @author joey
 * @since 2023-04-25
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="Goods对象", description="商品信息")
public class Goods implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "商品id")
    @TableId(value = "gid", type = IdType.AUTO)
    private Integer gid;

    @ApiModelProperty(value = "分类id")
    @TableField("type_id")
    private Integer typeId;

    @ApiModelProperty(value = "商品名")
    private String gname;

    @ApiModelProperty(value = "详细名称")
    private String detailName;

    @ApiModelProperty(value = "单价格")
    private Integer gprice;

    @ApiModelProperty(value = "货号")
    private String gcode;

    @ApiModelProperty(value = "商品描述")
    private String gdescribe;

    @ApiModelProperty(value = "图片路径链接")
    private String imgLink;

    @ApiModelProperty(value = "商品库存")
    private Integer gnum;

    @ApiModelProperty(value = "商品状态。1：可出售 ；2：已售完；3：不可售出")
    private Integer gstatus;

    @ApiModelProperty(value = "尺寸")
    private String goodsSize;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @ApiModelProperty(value = "更新时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;


}
